<?php

namespace HuoShu\Data;
class Base{
    public function generate_table_header($data){
        $th_txt='';
        foreach($data as $v){
            $th_txt.="<th>$v</th>";
        }
        return $th_txt;
    }
    
    public function generate_table_sum($fields){
        $txt='<tr style="color:#0ae;">';
        foreach($fields as $field){
            $txt.='<td>'.$field.'</td>';
        }
        $txt.='<tr>';
        
        return $txt;
    }
}

